package ourMessage;

public class Hello extends Message{
        private static final long serialVersionUID = 33L;
        private boolean isAck;
        
        public Hello(String login, boolean isAck) {
                super(login);
                this.isAck = isAck;
        }
        
        @Override
        public String toString() {
                return "Hello from " + login  +", isAck=" + isAck ;
        }

        public boolean isAck() {
                return isAck;
        }
        
        public void setIsAck(boolean isAck) {
                this.isAck = isAck;
        }
        
        public String getlogin() {
        return this.login;
    }
        
}
